<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>票易信息管理系统</title>
<link rel="stylesheet" href="/css/admin.css" type="text/css"/>
<script type="text/javascript" src="/js/jquery-1.6.1.min.js"></script>
<script language="javascript">
<!--
function up()
{	
		$('#uploading').css({display:'block'});
}
<s:if test="message=='true'">
window.opener.document.getElementById('<s:property value="editId" escape="false"/>').value='<s:property value="picPath" escape="false"/>';
window.alert('文件上传成功!请不要修改生成的链接地址！');
window.close();
</s:if>
<s:else>
<s:if test="message!=''">
window.alert('<s:property value="message" escape="false"/>');
</s:if>
</s:else>
-->
</script>
</head>
<body leftmargin="2" topmargin="2">
<s:form id="create" action="admin_upload_pic" enctype="multipart/form-data">
<s:hidden name="action" />
<s:hidden name="editId" />
 <fieldset><legend>图片上传</legend>
 <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  <COLGROUP>
  <COL width="130" />
  <COL width="*" />
    <tr class="tdbg3" id="uploading" style="display:none"> 
      <td align="right"></td>
      <td>正在上传文件，请稍候...</td>
    </tr>
	<tr class="tdbg3"> 
      <td align="right">图片上传：</td>
      <td>
		<input type="file" name="file" size="40" value="" />
		<input type="submit" name="Submit" value="开始上传" class="button" onclick="javascript:up()" />
	  </td>
    </tr>
</table>
</fieldset>
</s:form>
</body>
</html>
